#include<stdio.h>

int sum = 0;

int check_sum(int score);
int main(int argc, char *argv)
{
	int score;
	int grade;
	while(1){
		printf("请输入成绩（输入0退出）：");
		scanf("%d", &score);
		if(0 == score){
			printf("即将退出\n");
			break;
		}

		if(grade){
			printf("成绩合格，当前及格人数为：%d\n", sum);
		}else{
			printf("不及格，当前及格人数为：%d\n", sum);
		}
	}

	return 0;
}

int check_sum(int score){
	if(score >= 60){
		sum++;
		return 1;
	}else{
		return 0;
	}
}

